<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div id="header">
	
	<div class="h1"><a href="${pageContext.request.contextPath}" title="Go to homepage">Metropolis</a></div>
	<div class="h2">...the best service to buy a ticket!</div>
	<c:if test="${not empty sessionScope.user}">
	    <div id="hLogin">
	   		<c:if test="${sessionScope.user.getClass().name == 'accountManagement.Client'}">
		    	Ciao,
		    	&nbsp;<c:out value="${sessionScope.user.surname}" />
	   			&nbsp;<c:out value="${sessionScope.user.name}" />
	   		</c:if>
	   		<c:if test="${sessionScope.user.getClass().name == 'accountManagement.Employee'}">
		    	Ciao Operatore
		    	&nbsp;(<c:out value="${sessionScope.user.employeeId}" />)
		    </c:if>
		    <c:if test="${sessionScope.user.getClass().name == 'accountManagement.Admin'}">
		    	Sei autenticato come:
		    	&nbsp;<c:out value="${sessionScope.user.getClass().simpleName}" />
		    </c:if>
	   	</div>
	</c:if>   
</div>